package cn.smartgarden.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.smartgarden.model.Args;
@Repository
public interface ArgsDAO {
	
    int deleteByPrimaryKey(Integer id);

    int insert(Args record);

    int insertSelective(Args record);

    Args selectByPrimaryKey(Integer id);
    
    List<Args> getAll();
    
    List<Args> getByDate(@Param("datestart")String datestart,@Param("dateend")String dateend);
    
    List<Args> getByDateSbh(@Param("datestart")String datestart,@Param("dateend")String dateend,@Param("sbh")String sbh);

    List<Args> getLastRecord(@Param("num")Integer num,@Param("sbh")String sbh);
    
    List<Map<String, Object>> getSbh();
    
    int updateByPrimaryKeySelective(Args record);

    int updateByPrimaryKey(Args record);
}